﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Orders.VO
{
    /// <summary>
    /// 购买记录
    /// </summary>
    [AutoMapFrom(typeof(Order))]
    public class UserBuyDetailVO : EntityDto<long>
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string Avatar { get; set; }
        /// <summary>
        /// 朋友姓名
        /// </summary>
        public string FriendUserName { get; set; }
        /// <summary>
        /// 朋友头像
        /// </summary>
        public string FriendAvatar { get; set; }
        /// <summary>
        /// 是否赠送朋友
        /// </summary>
        public bool IsFriend { get; set; }
        /// <summary>
        /// 朋友是否获得全部收益
        /// </summary>
        public bool AllBenefitForFriend { get; set; }
        /// <summary>
        /// 购买棵树
        /// </summary>
        public int TreeQty { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreationTime { get; set; }

    }
}
